package apiModel

import (
	baseModel "westarry/gin-fox/app/base"
	ginfox "westarry/gin-fox/gin-fox"

	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Id       int `crud:"field:id"`
	Username string
	Nickname string
	Email    string
	baseModel.BaseModel
}

func (_self *User) TableName() string {
	return ginfox.Gc.C.Db.Prefix + "user"
}
